package cn.snorlaxzjt.LBSserver.common;

import lombok.Getter;

@Getter
public class BaseException extends RuntimeException {

    private final BusinessCode errorType;


    public BaseException() {
        this.errorType = BusinessCode.SYSTEM_ERROR;
    }

    public BaseException(BusinessCode errorType) {
        this.errorType = errorType;
    }

    public BaseException(BusinessCode errorType, String message) {
        super(message);
        this.errorType = errorType;
    }

    public BaseException(BusinessCode errorType, String message, Throwable cause) {
        super(message, cause);
        this.errorType = errorType;
    }
}
